package cn.whpu.omnitrixerp.entity.po.auth;

import cn.whpu.omnitrixerp.entity.po.BaseEntity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.util.Date;

import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 权限表
 *
 * @author Gim Gong
 * @date 2025/6/28
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName(value = "sys_permission")
public class PermissionPO extends BaseEntity {

    /**
     * 父级权限ID
     */
    @TableField(value = "parent_id")
    private Integer parentId;

    /**
     * 菜单/按钮名称
     */
    @TableField(value = "name")
    private String name;

    /**
     * 类型：1-菜单；2-按钮
     */
    @TableField(value = "type")
    private String type;

    /**
     * 访问路径
     */
    @TableField(value = "path")
    private String path;

    /**
     * 图标
     */
    @TableField(value = "icon")
    private String icon;

    /**
     * 排序
     */
    @TableField(value = "order_num")
    private Integer orderNum;

}